/* ***********************************************************************
 * Copyright (C) 1992-- 2016 中国南方航空股份有限公司.
 *
 * Created [2016-09-08 14:30:09] by FMS Team
 * ***********************************************************************
 *
 * mybaits-generator
 * ***********************************************************************
 */
package com.foreveross.law.contract.domain;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>com.foreveross.law.contract.domain.ContractFile</p>
*
* @author changwu.liao email:changwu.liao(a)gmail.com
* @version 1.0
* @since 1.0
* @Modified by add modified description
* @purpose add this file description here
*/
public class ContractFile implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias	
	public static final String TABLE_SQL_NAME = "CONTRACT_FILE";
	
	public static final String ALIAS_CONTRACT_FILE_ID = "contractFileId";
	public static final String ALIAS_CONTRACT_ID = "contractId";
	public static final String ALIAS_CONTRACT_MODEL_ID = "contractModelId";
	public static final String ALIAS_FILE_NAME = "fileName";
	public static final String ALIAS_FULL_FILE_PATH = "fullFilePath";
	public static final String ALIAS_FILE_SIZE = "fileSize";
	public static final String ALIAS_IS_NEW = "isNew";
	public static final String ALIAS_CREATE_DATE = "createDate";
	public static final String ALIAS_CREATE_BY = "createBy";
	
	//the column is a primary key	
	public static final String PROP_KEY = "contractFileId";
	
	
		
	//fields START
	public static String PROP_REF="ContractFile";
	public static String PROP_REF_CONTRACT_FILE_ID = "contractFileId";
	
	public static String PROP_REF_CONTRACT_ID = "contractId";
	
	public static String PROP_REF_CONTRACT_MODEL_ID = "contractModelId";
	
	public static String PROP_REF_FILE_NAME = "fileName";
	
	public static String PROP_REF_FULL_FILE_PATH = "fullFilePath";
	
	public static String PROP_REF_FILE_SIZE = "fileSize";
	
	public static String PROP_REF_IS_NEW = "isNew";
	
	public static String PROP_REF_CREATE_DATE_BEGIN = "createDateBegin";
	public static String PROP_REF_CREATE_DATE_END = "createDateEnd";
	
	public static String PROP_REF_CREATE_BY = "createBy";
	
	//fields END
	
	//columns sql name START	
	public static String PROP_COLUMN_CONTRACT_FILE_ID = "CONTRACT_FILE_ID";
	public static String PROP_COLUMN_CONTRACT_ID = "CONTRACT_ID";
	public static String PROP_COLUMN_CONTRACT_MODEL_ID = "CONTRACT_MODEL_ID";
	public static String PROP_COLUMN_FILE_NAME = "FILE_NAME";
	public static String PROP_COLUMN_FULL_FILE_PATH = "FULL_FILE_PATH";
	public static String PROP_COLUMN_FILE_SIZE = "FILE_SIZE";
	public static String PROP_COLUMN_IS_NEW = "IS_NEW";
	public static String PROP_COLUMN_CREATE_DATE = "CREATE_DATE";
	public static String PROP_COLUMN_CREATE_BY = "CREATE_BY";
	//columns sql name END
		
	//columns START
	private java.lang.String contractFileId;
	private java.lang.String contractId;
	private java.lang.String contractModelId;
	private java.lang.String fileName;
	private java.lang.String fullFilePath;
	private java.lang.Integer fileSize;
	private java.lang.Boolean isNew;
	private java.util.Date createDate;
	private java.lang.String createBy;
	//columns END

	public ContractFile(){
	}

	public ContractFile(
		java.lang.String contractFileId
	){
		this.contractFileId = contractFileId;
	}

	public void setContractFileId(java.lang.String value) {
		this.contractFileId = value;
	}
	
	public java.lang.String getContractFileId() {
		return this.contractFileId;
	}
	public void setContractId(java.lang.String value) {
		this.contractId = value;
	}
	
	public java.lang.String getContractId() {
		return this.contractId;
	}
	public void setContractModelId(java.lang.String value) {
		this.contractModelId = value;
	}
	
	public java.lang.String getContractModelId() {
		return this.contractModelId;
	}
	public void setFileName(java.lang.String value) {
		this.fileName = value;
	}
	
	public java.lang.String getFileName() {
		return this.fileName;
	}
	public void setFullFilePath(java.lang.String value) {
		this.fullFilePath = value;
	}
	
	public java.lang.String getFullFilePath() {
		return this.fullFilePath;
	}
	public void setFileSize(java.lang.Integer value) {
		this.fileSize = value;
	}
	
	public java.lang.Integer getFileSize() {
		return this.fileSize;
	}
	public void setIsNew(java.lang.Boolean value) {
		this.isNew = value;
	}
	
	public java.lang.Boolean getIsNew() {
		return this.isNew;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setCreateBy(java.lang.String value) {
		this.createBy = value;
	}
	
	public java.lang.String getCreateBy() {
		return this.createBy;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("ContractFileId",getContractFileId())
			.append("ContractId",getContractId())
			.append("ContractModelId",getContractModelId())
			.append("FileName",getFileName())
			.append("FullFilePath",getFullFilePath())
			.append("FileSize",getFileSize())
			.append("IsNew",getIsNew())
			.append("CreateDate",getCreateDate())
			.append("CreateBy",getCreateBy())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getContractFileId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ContractFile == false) return false;
		if(this == obj) return true;
		ContractFile other = (ContractFile)obj;
		return new EqualsBuilder()
			.append(getContractFileId(),other.getContractFileId())
			.isEquals();
	}
}

